<?php
	$productText = trim($this->product->getProductText());
	$features = trim($this->product->getFeatures());
	$specifications = trim($this->product->getSpecifications());
	$activeTab = 0;
	if(!empty($productText)) {
		$activeTab = 1;
	} elseif(!empty($features)) {
		$activeTab = 2;
	} elseif(!empty($specifications)) {
		$activeTab = 3;
	}
?>
<?php if($activeTab > 0): ?>
	<div id="prd-details">
		<ul>
			<li <?php echo ($activeTab == 1) ? 'class="active"' : '' ?>><a href="#prd-details-tabs-1">Produkttext</a></li>
			<li class="prd-details-spacer"></li>
			<li <?php echo ($activeTab == 2) ? 'class="active"' : '' ?>><a href="#prd-details-tabs-2">Features</a></li>
			<li class="prd-details-spacer"></li>
			<li <?php echo ($activeTab == 3) ? 'class="active"' : '' ?>><a href="#prd-details-tabs-3">Spezifikationen</a></li>
		</ul>
		<div id="prd-details-tabs">
			<div id="prd-details-tabs-bg">
				<div id="prd-details-tabs-1"><?php echo $productText ?></div>
				<div id="prd-details-tabs-2"><?php echo $this->productFeatures($features) ?></div>
				<div id="prd-details-tabs-3"><?php echo $this->productSpecifications($specifications) ?></div>
			</div>
		</div>
	</div>
<?php endif; ?>